<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/4.3.1/css/bootstrap.min.css">
    <script src="https://cdn.staticfile.org/jquery/3.2.1/jquery.min.js"></script>
    <script src="https://cdn.staticfile.org/popper.js/1.15.0/umd/popper.min.js"></script>
    <script src="https://cdn.staticfile.org/twitter-bootstrap/4.3.1/js/bootstrap.min.js"></script>
    <link href="css/pager.css" rel="stylesheet">
</head>
<body>
<div>
    <ul class="pagination pager">
        {&$request=make('request');&}
        {&$params=$request->all()&}
        @if(count($page['page_list'])>0)
        {&$params['page']=1;&}
        <li class="page-item"><a class="page-link" href="{{make_method_static('common','http_url_build',$params)}}">首页</a></li>
        @endif
        @if(isset($page['pre_page']))
        {&$params['page']=$page['pre_page'];&}
        <li class="page-item"><a class="page-link" href="{{make_method_static('common','http_url_build',$params)}}"><img class="pager-go" src="../../asset/icon-picture/left-narrow.png" alt=""></a></li>
        @endif
        @foreach($page['page_list'] as $item)
        @if($item==$page['current_page'])
        {&$params['page']=$item;&}
        <li class="page-item active"><a class="page-link" href="{{make_method_static('common','http_url_build',$params)}}">{{$item}}</a></li>
        @else
        {&$params['page']=$item;$url_item=$request->get_full_url(false).'?'.http_build_query($params);&}
        <li class="page-item"><a class="page-link" href="{{make_method_static('common','http_url_build',$params)}}">{{$item}}</a></li>
        @endif
        @endforeach
        @if(isset($page['next_page']))
        {&$params['page']=$page['next_page'];$url_item=$request->get_full_url(false).'?'.http_build_query($params)&}
        <li class="page-item"><a class="page-link" href="{{make_method_static('common','http_url_build',$params)}}"><img class="pager-go" src="../../asset/icon-picture/right-narrow.png" alt=""></a></li>
        @endif
        @if(count($page['page_list'])>0)
        {&$params['page']=$page['page_total'];$url_item=$request->get_full_url(false).'?'.http_build_query($params)&}
        <li class="page-item"><a class="page-link" href="{{make_method_static('common','http_url_build',$params)}}">末页</a></li>
        @endif
    </ul>
</div>
</body>
</html>